using System.Web;
using Karma.Framework.Core.IoC;
using Karma.Framework.Core.Services.Invoker;
using Karma.Framework.Core.Services.Invoker.Adapter;

namespace Karma.Framework.Core.Domain.Tools.Export.Handler
{
    public class ExporterHandler : IHttpHandler
    {
        public void ProcessRequest(HttpContext context)
        {
            var invoker = IoCFactory.Resolve<IInvokerFacade>("XL", "XL");
            var adapter = IoCFactory.Resolve<IAdapter>("XL", "XL");
            invoker.Adapter = adapter;
            invoker.Invoke();
        }

        public bool IsReusable
        {
            get { return false; }
        }
    }
}